home *** CD-ROM | disk | FTP | other *** search
- THE LAST PROGRAM I WILL EVER NEED TO WRITE
- IN ORDER TO CALCULATE MEAN AND STANDARD DEVIATION
-
-
- When I set about learning to use GEM from OSS Personal Pascal,
- I wanted to focus on that and not on the algorithm. I recalled the
- times that I whipped out a simple program to calculate the mean and standard
- deviation of a set of numbers--usually 20 lines of BASIC. "Why not",
- I thought, "write the ultimate mean program and learn to use GEM at
- the same time?" STATS is the result. You may notice that it is
- somewhat longer than 20 lines. The complexity of GEM is partly to
- blame, but the program also got fatter as I added options and nice
- features to the interface. The program has (in addition to the
- GEM interface) help screens, options to enter data from the keyboard
- or read it from disk, error checking of data entry, editing and
- sorting options, display of data, results or graph on screen or as
- printed copy, and more.
-
- If you just want to use the program, then all you need to
- worry about is having STATS.PRG and TITLE.I2 on the same disk, and
- you should be in MEDIUM RESOLUTION on a color monitor. Double click
- on STATS.PRG, then click on HELP when the menu appears. You can then
- click on the various options under HELP to read more about using the
- program.
-
- If you are a Pascal programmer, you will want to look at the
- source to see what you can modify or steal. Note that I have included
- my INCLUDE library, which contains several procedures necessary to
- compile STATS (and a few other goodies, as well). If you want to use
- the program in high resolution, just delete the call to TITLEPAGE and
- recompile. As the program preface says, the program is poorly commented.
- I apologise; this is not the way I usually write programs. Still, there
- are several interesting procedures which I was able to steal, and a
- few which I wrote, that may be of general interest. Take a look at
- the program in action. If you see something of interest that you can't
- puzzle out from the source, write me a letter or leave a message on
- Compuserve.
-
- Gary Curtis Newport
- 27808 Manon Ave. #18
- Hayward, CA 94544
-
- Compuserve # 73637,167
-